<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn(a, c) {
        var b = a;
        var i = 0;
        while (b <= c) {
          a += b;
          b = a;
          i++;
          if (b > c) {
            i++;
            return `折${i}次可以超过珠穆朗玛峰`;
          }
        }
      }
      document.write(fn(0.01, 8848));
    </script>
  </body>
</html>
